import com.itheima.service.AccountService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applitionContext.xml");
        AccountService accountService = (AccountService) ctx.getBean("accountService");
        accountService.findAll();
    }
}
